package pushtest.mobike.com.mtpush.viewModel

import android.content.Context
import android.content.Intent
import android.databinding.ObservableField
import android.view.View
import pushtest.mobike.com.mtpush.ui.UiDisplayActivity
import javax.inject.Inject

/**
 * @author  wangxiaolong
 * @time    17/08/2018
 * @desc
 */
class ViewModelMain constructor(private val context: Context) {

  val value = ObservableField<String>()

  fun updateString(value: Int) {
    this.value.set(context.getString(value))
  }

  fun gotoUi(view: View) {
    context.startActivity(Intent(context, UiDisplayActivity::class.java));
  }

}